angular.module('inspinia')
  .controller('topnavbarCtrl', function($scope,$log) {
    // if (window.localStorage.getItem('user') == undefined || window.localStorage.getItem('user') == '') {
    //   window.location.href = "/#/user/login";
    // }
    // $scope.removeUser = function () {
    //   window.localStorage.removeItem('user');
    // }
    $scope.message1s=[
      {
        id:'1',
        imageSrc:'img/a4.jpg',
        timeByNow:'7小时前',
       doctorName:'张小凡',
        occupation:'物理师',
        detailMsg:'邀请你查看患者曹丽华的压模',
        lastTime:'2016-09-13 13:24'
      },
      {
        id:'2',
        imageSrc:'img/a1.jpg',
        timeByNow:'一天前',
        doctorName:'谭政',
        occupation:'模室技师',
        detailMsg:'患者曹丽华目前不能压模！',
        lastTime:'2016-09-13 13:24'
      },
      {
        id:'3',
        imageSrc:'img/a2.jpg',
        timeByNow:'30分钟前',
        doctorName:'王立文',
        occupation:'划价记账处',
        detailMsg:'患者曹丽华是否需要补交一次治疗费用？',
        lastTime:'2016-09-13 13:24'
      }
    ]
    $scope.chooseDoctor=function (id) {
      localStorage.setItem('chooseDoctorId',id);
    }


});


